﻿var a := '123456789';

PrintLn(Copy(a, 4, 3));
PrintLn(Copy(a, 4, 30));
PrintLn(Copy(a, 4));

PrintLn(a.Copy(4, 3));
PrintLn(a.Copy(4, 30));
PrintLn(a.Copy(4));
